package com.spring.framework.config.async.xml;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;

/**
 * @author xuweizhi
 * @since 2021/07/09 15:39
 */
@Slf4j
public class AsyncMethod {

	@Async
	public void log() {
		System.out.println("-----log：" + Thread.currentThread().getName());
	}

	@Async
	public void log2() {
		System.out.println("-----log2：" + Thread.currentThread().getName());
		log3();
	}

	@Async
	public void log3() {
		System.out.println("-----log3：" + Thread.currentThread().getName());
	}

}
